package com.sunshine.simplehospital.viewmodel

import android.app.Application
import android.content.Context
import androidx.core.content.edit
import com.sunshine.simplehospital.base.BaseViewModel
import com.sunshine.simplehospital.bean.SimpleHospitalRepository
import com.sunshine.simplehospital.bean.User

/**
 * Created by sunshine on 2020/4/28
 */

class SplashViewModel(application: Application) : BaseViewModel(application){

    fun getAllUser(): List<User>? {
        return getRepository().getAllUser()
    }

    fun getLoginUser(): String {
        return getAppInfo().getString("login_user", "")!!
    }
}